package com.atguigu.springboot.controller;

import com.atguigu.springboot.service.IAsyncService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/02 17:49 周三
 * @description :
 */
@RestController
@RequestMapping("/hello")
@AllArgsConstructor
public class AsyncController {

    private final IAsyncService asyncService;

    @GetMapping
    public String hello() {
        asyncService.hello();
        return "success";
    }

}
